package com.example.conference.mapper;


import com.example.conference.domain.Major;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MajorMapper {
    @Select("select * from major where major_id = #{majorId}")
    Major queryById(Integer majorId);

    @Select("select * from major")
    List<Major> queryAll();
}